Google Analytics

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),

        docular: {
            // other options ommitted for simplicity
            analytics: {
                account: 'UA-40646426-1',
                domainName: 'grunt-docular.com'
            }
        }

    });

    // Load the plugin that provides the "docular" tasks.
    grunt.loadNpmTasks('grunt-docular');

    // Default task(s).
    grunt.registerTask('default', ['docular']);

};

Analytics Defaults

If you do not provide analytic configurations, then the analytic calls will not be made.

Analytics Service Calls

Currently, there are two separate calls made during navigation within the webapp.